/**
 * @Author 韦建韩
 * @Date 2022/5/4
 */
package com.example.devops.Manage;

import org.springframework.stereotype.Service;

@Service
public class ProcessInfoManage {
    private static ThreadLocal<StringBuffer> m = new ThreadLocal<>();
    public static String getMirrorCreateInfo(String projectName){
        return m.get().toString();
    }

    public static StringBuffer getInfoObject (){
        StringBuffer stringBuffer = m.get();
        if(stringBuffer == null){
            StringBuffer b = new StringBuffer();
            m.set(b);
            return b;
        }
        return m.get();
    }
}
